Skip to content

fix(cli): inject deterministic fonts in snapshots#2311

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
fix/snapshot-fonts
Closed

fix(cli): inject deterministic fonts in snapshots#2311
miguel-heygen wants to merge 1 commit into
mainfrom
fix/snapshot-fonts

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

  • run snapshot HTML through the same deterministic font-face injection used by render
  • export the producer font injection helper for CLI snapshot use
  • add a regression test covering bundled-font injection

Reproduction

On CLI 0.7.55, hyperframes snapshot rendered League Gothic and Oswald with system fallback while hyperframes render used the bundled deterministic fonts. The snapshot path bundled HTML but skipped injectDeterministicFontFaces.

Verification

  • 13 snapshot-focused tests pass
  • CLI typecheck passes
  • formatting passes
  • end-to-end League Gothic snapshot reports Fonts: 1 loaded and logs deterministic @font-face injection

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Superseded by merged #2264, which implements snapshot font localization/readiness with broader failure diagnostics and regression coverage. Closing the duplicate branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant